package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.Prescription;
import com.neuedu.his.mapper.PrescriptionMapper;

@Service
@Transactional
public class PrescriptionServiceImpl implements PrescriptionService {
	
	@Autowired
	private PrescriptionMapper dao;
	
	@Override
	public List<Prescription> selectAll(Prescription u) {
		return dao.selectAll(u);
	}

	@Override
	public List<Prescription> selectById(Prescription u) {
		return dao.selectById(u);
	}

	@Override
	public int add(Prescription u) {
		return dao.add(u);
	}

	@Override
	public int delete(Prescription u) {
		return dao.delete(u);
	}

}
